Imports System.Collections
Imports SchemaCodeGen

Partial Public Class pages_drivertypes_usercontrols_UCDriverType : Inherits UserControl

#Region "Interface"
	Public Sub Display(ByVal driverType As CDriverType, sortedList As CDriverTypeList)
		If Parent.Controls.Count Mod 2 = 0 Then row.Attributes.Add("class", "alt_row")

		With [driverType]
			litNumber.Text = CStr(sortedList.IndexOf(driverType) + 1)
			lnkDriverName.Text = CStr(IIf(.DriverName.Length = 0, "...", .DriverName))
			lnkDriverName.NavigateUrl = CSitemap.DriverType(.DriverId)
			lnkUsage.Text = CUtilities.CountSummary(.Connections, "project", "none")
		End With
	End Sub
#End Region

End Class

